function getHttpRequest()
{
    var request=null;
    
    try
    {
        request=new ActiveXObject("Msxml2.XMLHTTP");
    }
    catch (e)
    {
        try
        {
            request=new ActiveXObject("Microsoft.XMLHTTP");
        }
        catch (ex)
        {
            request=new XMLHttpRequest();
        }
    }
    
    return request;
}

function sendHttpRequest(url,param,callback)
{
	request=getHttpRequest();
	request.open("POST",url,true);
	request.setRequestHeader("Content-type","application/x-www-form-urlencoded");
	if (callback!="")
	{
		request.onreadystatechange=eval(callback);
	}
	request.send(param);
}